package mul.Storage;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.util.Map;

import android.app.Activity;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.IBinder;

import mul.Logic.Player;

public class LocalStorage {

		
	
		private Map players;
		private SharedPreferences sharedPrefs;
		private SharedPreferences.Editor editor;
		
	
		public LocalStorage(Activity context){
			
			sharedPrefs = context.getPreferences(Activity.MODE_PRIVATE);
			players = sharedPrefs.getAll();
			editor = sharedPrefs.edit();

		}
		
		
		/**
		 * @param player
		 * Stores the player's name if it doent't already exist
		 */
		public void storePlayer(Player player){
			
			
//			if(!players.isEmpty()){
//				
//				if(!players.containsValue(player.getName())){
//					
//					editor.putString(player.toString(), player.getName());
//						
//				}
				
			}
		

}
	
	
		
		
		
		
		

	

